$def with(authr = 0)
$:frender.layer_header('订阅会员登录', scripts = ['libs/jquery.js', 'libs/jquery.tools.min.js'])
    
    <script type="text/javascript">
        var authr = $authr;
        $$(function () {
            $$('form').validator({'message': false});
            auth_result();
        });
        function auth_result() {
            var text = null;
            if (authr == 1) {
                var email = '$request("email")';
                topWin.setEmail(email);
                $$('input[type=email]').val(email);
                text = 'Email尚未订阅';
            } else if (authr == 2) {
                text = 'Email格式错误！';
            }
            if (text) {
                $$('._msg').html(text);
            }
        };
    </script>
    <form method="post">
    <div class="layCnt">
		<p>
			<input type="email" class="inp" name="email" required="required" style="width:170px;" />
			<a href="javascript:;" onclick="$$('form').submit();return false;" class="eml_rss_btn"><b>登录</b></a>
            <font class="_msg" color="red"></font>
		</p>
    </div>
    <div class="layCtr">
    </div>
    </form>

$:frender.layer_footer()
